package com.sskj.one.mine;

import com.sskj.common.base.HttpData;
import com.sskj.common.util.MD5Util;
import com.sskj.lib.http.JsonCallBack;
import com.sskj.one.presenter.BasePresenter;

/**
 * @author Hey
 * Create at  2019/06/10
 */
class AddBankPresenter extends BasePresenter<AddBankActivity> {

    public void addBank(String name, String bank, String bankID, String branch, String card, String pwd) {
        httpService.addBank(name, bank, bankID, branch, card, MD5Util.getFiveMd5Value(pwd))
                .tag(this)
                .execute(new JsonCallBack<HttpData>(this) {
                    @Override
                    public void onHTTPSuccess(HttpData data) {
                        mView.addBankOK(name,bank,branch,card);
                    }
                });
    }
}
